package org.jeecg.qis.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 过程检验配置主表
 * @Author: shaolong
 * @Date: 2022-10-10
 * @Version: V1.0
 */
@Data
@TableName("qis_prochead_cfg")
@ApiModel(value = "qis_prochead_cfg对象", description = "过程检验配置主表")
public class QisProcheadCfg implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 表号
     */
    @Excel(name = "表号", width = 15)
    @ApiModelProperty(value = "表号")
    private String recId;

    /**
     * 产品
     */
    @Excel(name = "产品", width = 15)
    @ApiModelProperty(value = "产品")
    private String partno;
    /**
     * 产品描述
     */
    @Excel(name = "产品描述", width = 15)
    @ApiModelProperty(value = "产品描述")
    private String description;
    /**
     * 版本
     */
    @Excel(name = "版本", width = 15)
    @ApiModelProperty(value = "版本")
    private String rev;

    /**
     * 配置类型. 1-过程, 2-成品
     */
    @Excel(name = "配置类型. 1-过程, 2-成品", width = 15)
    @ApiModelProperty(value = "配置类型. 1-过程, 2-成品")
    @Dict(dicCode = "qis_prochead_cfg@TYPE")
    private String type;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
}
